/*
 * @Description:router
 * @Date: 2021-09-15 09:36:27
 * @LastEditTime: 2021-09-16 15:44:48
 */

import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/sys/home/index.vue'
import About from '../views/sys/about/index.vue'

const routes = [
  { path: '/', redirect: '/home' },
  { path: '/about', component: About },
  { path: '/home', component: Home },
]

const router = createRouter({
  //  history 模式
  history: createWebHistory(),
  routes, // `routes: routes` 的缩写
})
export default router
